package com.example.leetcode;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2023-07-11
 * Time: 21:35
 */
public class TestVolatile {

    private static volatile boolean flg = false;

    public static void main(String[] args) {

        AtomicInteger atomicInteger = new AtomicInteger();
        atomicInteger.addAndGet(1);
    }
}